package com.sxt.springcloud.sys;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sxt.springcloud.sys.fallback.LoginfoClientFallbackService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import com.sxt.sys.domain.Dept;
import com.sxt.sys.domain.Loginfo;
import com.sxt.sys.vo.LoginfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-SYS",fallbackFactory = LoginfoClientFallbackService.class)
@RequestMapping("/p/loginfo")
public interface LoginfoClientService {



    /**
     * 全查询
     */
    @RequestMapping("loadAllLoginfo")
    DataGridView loadAllLoginfo(@RequestBody LoginfoVo loginfoVo);


    /**
     * 删除
     */
    @RequestMapping("deleteLoginfo")
    ResultObj deleteLoginfo(@RequestParam("id") Integer id);


    /**
     * 批量删除
     */
    @RequestMapping("batchDeleteLoginfo")
    ResultObj batchDeleteLoginfo(@RequestBody LoginfoVo loginfoVo);

}
